//
//  BaiduApi.m
//  baidu_face
//
//  Created by huangshuigen on 2024/8/26.
//

#import "BaiduApi.h"

@implementation BaiduApi

+ (NSString *)accessTokenUrl:(NSString *)ak sk:(NSString *)sk
{
    return [NSString stringWithFormat:@"https://aip.baidubce.com/oauth/2.0/token?client_id=%@&client_secret=%@&grant_type=client_credentials", ak, sk];
}

+ (NSString *)verifyTokenWithAccessToken:(NSString *)accessToken {
    return [NSString stringWithFormat:@"https://aip.baidubce.com/rpc/2.0/brain/solution/faceprint/verifyToken/generate?access_token=%@", accessToken];
}

@end
